

<%@ page import="auctionatr.Bid"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName"
	value="${message(code: 'bid.label', default: 'Bid')}" />
<title><g:message code="default.createGebot.label"
		args="[entityName]" />
</title>
</head>
<body>

	<div class="body">
		<h1>
			<g:message code="default.createGebot.label" args="[entityName]" />
		</h1>
		<g:if test="${flash.message}">
			<div class="message">
				${flash.message}
			</div>
		</g:if>
		<g:hasErrors bean="${bidInstance}">
			<div class="errors">
				<g:renderErrors bean="${bidInstance}" as="list" />
			</div>
		</g:hasErrors>
		<g:form action="save">
			<div class="dialog">
				<input type="hidden" name="auctions.id" value="${params.id ? params?.id : params?.auctions?.id}" />
				<table>
					<tbody>

						<tr class="prop">
							<td valign="top" class="name"><label for="gebot"><g:message
										code="bid.gebot.label" default="Gebot" />
							</label></td>
							<td valign="top"
								class="value ${hasErrors(bean: bidInstance, field: 'gebot', 'errors')}">
								<g:textField name="gebot"
									value="${fieldValue(bean: bidInstance, field: 'gebot')}" />
									<p><g:message
										code="bid.mindgebot.label" default="Mindestgebot" />: <g:formatNumber
								number="${nextBid}" type="currency"
								currencyCode="EUR" /></p>
									</td>
						</tr>


					</tbody>
				</table>
			</div>
			<div class="buttons">
				<span class="button"><g:submitButton name="create"
						class="save"
						value="${message(code: 'default.button.create.gebot.label', default: 'Create')}" />
				</span>
			</div>
		</g:form>
	</div>
</body>
</html>
